import Vue from 'vue'
import Router from 'vue-router'
import HomeContainer from '../components/HomeContainer'
import MemberContainer from '../components/MemberContainer'
import ShopContainer from '../components/ShopContainer'
import SearchContainer from '../components/SearchContainer'
import newsList from '../components/news/newsList'
import newsInfo from '../components/news/newsInfo'
import PhotoList from '../components/photos/PhotoList'
import PhotoInfo from '../components/photos/PhotoInfo'
import goodList from '../components/goods/goodList'
import goodInfo from '../components/goods/goodInfo'
import goodsDesc from '../components/goods/goodsDesc'
import goodsComment from '../components/goods/goodsComment'
Vue.use(Router)


export default new Router({
  routes: [
    {path:'/',redirect:'/home'  },
    {path:'/home',component:HomeContainer},
    {path:'/member',component:MemberContainer},
    {path:'/shop',component:ShopContainer},
    {path:'/search',component:SearchContainer},
    {path:'/home/newslist',component:newsList},
    {path:'/home/newsinfo/:id',component:newsInfo},
    {path:'/home/photo',component:PhotoList},
    {path:'/home/photoinfo/:id',component:PhotoInfo},
    {path:'/home/goodList',component:goodList},
    {path:'/home/goodinfo/:id',component:goodInfo,name:'goodInfo'},
    {path:'/home/goodsdesc/:id',component:goodsDesc,name:'goodsDesc'},
    {path:'/home/goodsComment/:id',component:goodsComment,name:'goodsComment'}
  ],
  linkActiveClass:'mui-active'
})
